package com.cn.service.server.PartsManagement;

import com.cn.bean.vo.PartsManagement.TeamPersonnel;
import com.cn.bean.vo.bc.UserJob;
import com.cn.config.config.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeamPersonnelService {
    List<TeamPersonnel> selectTeamPersonnel(@Param("limit") int limit, @Param("page") int page, @Param("username") String username, @Param("name") String name, @Param("jobName") String jobName, @Param("teamName") String teamName);
    //查询班组人员状态为1
    List<TeamPersonnel> selectTeamAuto1(@Param("limit") int limit, @Param("page") int page, @Param("code") String code, @Param("name") String name);

    List<TeamPersonnel> selectTeam(@Param("limit") int limit, @Param("page") int page, @Param("code") String code, @Param("name") String name);

    List<UserJob> selectEmployeeJob(@Param("limit") int limit, @Param("page") int page, @Param("jobName") String jobName, @Param("name") String name, @Param("username") String username);

    Result addTeam(@Param("TeamName") String TeamName, @Param("description") String description, @Param("status") int status, @Param("CreationTime") String CreationTime, @Param("childList") List<TeamPersonnel> childList);

    Result deleteTeamEmployeeJob(@Param("idList") List<TeamPersonnel> idList);
    List<TeamPersonnel>selectTeamPersonnelTeamId(@Param("TeamID")int TeamID);
    Result upDateTeam(@Param("TeamID") int TeamID,@Param("TeamName") String TeamName,@Param("description") String description,@Param("status") int status,@Param("childList") List<TeamPersonnel> childList);
    List<UserJob> selectUserInformation(@Param("limit") int limit, @Param("page") int page, @Param("name") String name, @Param("username") String username);

    List<UserJob> selectJobInformation(@Param("limit") int limit, @Param("page") int page, @Param("jobName") String jobName);
}
